package com.octnote.repository;

import com.octnote.domain.task.UserTask;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;

/**
 * 任务Task TasksRepository
 * 
 * @author leohehe
 *
 */
@RestResource(exported = false) // 禁止暴露REST
public interface TasksRepository extends CrudRepository<UserTask, Long> {
	Page<UserTask> findAll(Pageable p);

	Page<UserTask> findByUserIdContaining(String searchPhrase, Pageable p);

}
